<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>

<link rel="stylesheet" href="modules/mod_lkregistration/tmpl/styles/style.css" type="text/css" />

<div id="lkregistration" class="<?php echo $params->get('moduleclass_sfx'); ?>">
	
	<?php if($action == 'form'):?>
	
		<div class="registration">	
			<form action="<?php echo JRoute::_('index.php', true, 0); ?>" method="post" id="register-form" >
				<fieldset><legend>User Registration</legend>
				<dl>
					<dt><span class="spacer"><span class="before"></span><span class="text"><label id="jform_spacer-lbl" class=""><strong class="red">*</strong> Required field</label></span><span class="after"></span></span></dt>
					<dd></dd>
					<dt><label id="jform_name-lbl" for="jform_name" class="hasTip required" title="">Name:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="text" name="jform[name]" id="jform_name" value="" class="required" size="30" aria-required="true" required="required"></dd>
					<dt><label id="jform_username-lbl" for="jform_username" class="hasTip required" title="">Username:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="text" name="jform[username]" id="jform_username" value="" class="validate-username required" size="30" aria-required="true" required="required"></dd>
					<dt><label id="jform_password1-lbl" for="jform_password1" class="hasTip required" title="">Password:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="password" name="jform[password1]" id="jform_password1" value="" autocomplete="off" class="validate-password required" size="30" aria-required="true" required="required"></dd>
					<dt><label id="jform_password2-lbl" for="jform_password2" class="hasTip required" title="">Confirm Password:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="password" name="jform[password2]" id="jform_password2" value="" autocomplete="off" class="validate-password required" size="30" aria-required="true" required="required"></dd>
					<dt><label id="jform_email1-lbl" for="jform_email1" class="hasTip required" title="">Email Address:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="email" name="jform[email1]" class="validate-email required" id="jform_email1" value="" size="30" aria-required="true" required="required"></dd>
					<dt><label id="jform_email2-lbl" for="jform_email2" class="hasTip required" title="">Confirm email Address:<span class="star">&nbsp;*</span></label></dt>
					<dd><input type="email" name="jform[email2]" class="validate-email required" id="jform_email2" value="" size="30" aria-required="true" required="required"></dd-->
				</dl>
				</fieldset>
	
				<fieldset><legend>User Preferred Projection</legend>
				<dl>
					<dt><label id="jform_profile_projection-lbl" for="jform_profile_projection" class="hasTip" title="">Projection</label></dt>
					<dd>
						<select id="jform_profile_projection" name="projection">
							<?php foreach($categories as $cat):?>
							
							<option value="<?php echo $cat['id'];?>"><?php echo $cat['name'];?></option>
							
							<?php endforeach;?>
						</select>
					</dd>
				</dl>
				</fieldset>
				<div>
				<input type="hidden" name="option" value="com_content" />
				<input type="hidden" name="view" value="article" />
				<input type="hidden" name="id" value="<?php echo $articleId; ?>" />
				<input type="hidden" name="itemId" value="<?php echo $itemId; ?>" />
				<input type="hidden" name="action" value="save"/>
				<button type="submit" class="validate">Register</button> or <a href="" title="Cancel">Cancel</a> 
				</div>
			</form>
		</div>
	<?php else:?>
		<div id="system-message-container">
		<dl id="system-message">
		<dt class="message">Message</dt>
		<dd class="message message">
			<ul>
				<li>Your account has been created and an activation link has been sent to the email address you entered. Note that you must activate the account by clicking on the activation link when you get the email before you can login.</li>
			</ul>
		</dd>
		</dl>
		</div>	
	<?php endif;?>
	
</div>